package com.superbook.dao;

import org.springframework.data.mongodb.core.MongoTemplate;

import com.superbook.dao.pojos.InitialRestRegistrationPOJO;

public class InitialRestaurantRegistrationDAO {
	
	private MongoTemplate mongoTemplate;

	/**
	 * @param mongoTemplate the mongoTemplate to set
	 */
	public void setMongoTemplate(MongoTemplate mongoTemplate) {
		this.mongoTemplate = mongoTemplate;
	}
	
	public String saveRestRegistration(InitialRestRegistrationPOJO restaurantPOJO) {
		mongoTemplate.save(restaurantPOJO);
		System.out.println("1. user : " + restaurantPOJO);
		return "SUCCESS";
	}
	
	
	
}
